// 验证

// 手机号
export const regMobile = (mobile) =>{
	if(!mobile) return false
	let reg = /^(?:(?:\+|00)86)?1[3-9]\d{9}$/
	return reg.test(mobile)
}
// 验证码
export const regCode = (code) =>{
	if(!code) return false
	let reg = /^[A-z\d]{6}$/
	return reg.test(code)
}
// 密码
export const regPass = (pass) =>{
	if(!pass) return false
	let reg = /^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S*$/
	return reg.test(pass)
}